package com.itheima.neibulei;

public class TestDemo {
    public static void main(String[] args) {
        Dog dd = new Dog();
        dd.eat();
        dd.sleep();
        Animal d = new Animal() {
            @Override
            public void eat() {
                System.out.println("goushui");
            }

            @Override
            public void sleep() {
                System.out.println("goushui");
            }
        };
        d.eat();
        d.sleep();
    }
}
